package com.fjnldx.mes.domain.pojo.alarm.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 监控类型
 */
public enum MonitoringTypeEnum {
    TEMPLATE("模板", 0),
    INSTANCE("实例", 1),
    DATA_POINTS("数据点", 2),
    AUXILIARY("辅机", 3),
    ;
    
    private final String typeName;
    
    @JsonValue
    @EnumValue
    private final Integer typeValue;

    MonitoringTypeEnum(String name, int typeValue) {
        this.typeName = name;
        this.typeValue = typeValue;
    }

    public String getName() {
        return typeName;
    }

    public int getTypeValue() {
        return typeValue;
    }
}
